# docker build -t brevo:v1 .
# 下载最新nginx
FROM nginx
MAINTAINER zs
LABEL version = "1.0"
# vue dist包上传到容器nginx默认目录
COPY dist/ /usr/share/nginx/html
# 复制本地nginx配置文件覆盖容器nginx默认配置文件
COPY nginx.conf /etc/nginx/nginx.conf
# 暴漏容器端口
EXPOSE 80
# 指定容器时区
RUN rm -f /etc/localtime \
&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
# 启动nginx容器服务
ENTRYPOINT nginx -g "daemon off;"
